package com.haoze.nurse.dto;

import com.haoze.common.utils.DateUtil;
import com.haoze.nurse.model.OrdersSignEntity;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

/**
 * @Author: taokuan
 * @CreateTime: 2020-11-17 09:24
 */
public class OrdersSignDTO {
    private Integer page;
    private Integer pageSize;

    private String ordersSignId;

    private String orderNo;

    private String inpatNum;

    private String freq;

    private String signType;

    private Integer wardDeptId;

    private String deptId;

    private String freqTime;

    private String administration;

    private String inpatorderdataId;

    private String orderSubNo;

    private String signDoctorId;

    private String signDoctor;

    private String signDoctorDatetime;

    private String signDoctorEndId;

    private String signDoctorEnd;

    private String signDoctorEndDatetime;

    private String signNurseId;

    private String signNurse;

    private String signNurseDatetime;

    private String signNurseEndId;

    private String signNurseEnd;

    private String signNurseEndDatetime;

    private String bitSpeed;

    private String signNurseDatetimeBefore;

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public Date getSignDoctorDatetime() {
        if(StringUtils.isBlank(signDoctorDatetime)){
            return null;
        }
        return DateUtil.stringToDate(signDoctorDatetime,"yyyy-MM-dd HH:mm");
    }

    public void setSignDoctorDatetime(String signDoctorDatetime) {
        this.signDoctorDatetime = signDoctorDatetime;
    }

    public Date getSignDoctorEndDatetime() {
        if(StringUtils.isBlank(signDoctorEndDatetime)){
            return null;
        }
        return DateUtil.stringToDate(signDoctorEndDatetime,"yyyy-MM-dd HH:mm");
    }

    public void setSignDoctorEndDatetime(String signDoctorEndDatetime) {
        this.signDoctorEndDatetime = signDoctorEndDatetime;
    }

    public Date getSignNurseDatetime() {
        if(StringUtils.isBlank(signNurseDatetime)){
            return null;
        }
        return DateUtil.stringToDate(signNurseDatetime,"yyyy-MM-dd HH:mm");
    }

    public void setSignNurseDatetime(String signNurseDatetime) {
        this.signNurseDatetime = signNurseDatetime;
    }

    public Date getSignNurseEndDatetime() {
        if(StringUtils.isBlank(signNurseEndDatetime)){
            return null;
        }
        return DateUtil.stringToDate(signNurseEndDatetime,"yyyy-MM-dd HH:mm");
    }

    public void setSignNurseEndDatetime(String signNurseEndDatetime) {
        this.signNurseEndDatetime = signNurseEndDatetime;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrdersSignId() {
        return ordersSignId;
    }

    public void setOrdersSignId(String ordersSignId) {
        this.ordersSignId = ordersSignId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getInpatNum() {
        return inpatNum;
    }

    public void setInpatNum(String inpatNum) {
        this.inpatNum = inpatNum;
    }

    public String getFreq() {
        return freq;
    }

    public void setFreq(String freq) {
        this.freq = freq;
    }

    public Integer getWardDeptId() {
        return wardDeptId;
    }

    public void setWardDeptId(Integer wardDeptId) {
        this.wardDeptId = wardDeptId;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getFreqTime() {
        return freqTime;
    }

    public void setFreqTime(String freqTime) {
        this.freqTime = freqTime;
    }

    public String getAdministration() {
        return administration;
    }

    public void setAdministration(String administration) {
        this.administration = administration;
    }

    public String getInpatorderdataId() {
        return inpatorderdataId;
    }

    public void setInpatorderdataId(String inpatorderdataId) {
        this.inpatorderdataId = inpatorderdataId;
    }

    public String getOrderSubNo() {
        return orderSubNo;
    }

    public void setOrderSubNo(String orderSubNo) {
        this.orderSubNo = orderSubNo;
    }

    public String getSignDoctorId() {
        return signDoctorId;
    }

    public void setSignDoctorId(String signDoctorId) {
        this.signDoctorId = signDoctorId;
    }

    public String getSignDoctor() {
        return signDoctor;
    }

    public void setSignDoctor(String signDoctor) {
        this.signDoctor = signDoctor;
    }

    public String getSignDoctorEndId() {
        return signDoctorEndId;
    }

    public void setSignDoctorEndId(String signDoctorEndId) {
        this.signDoctorEndId = signDoctorEndId;
    }

    public String getSignDoctorEnd() {
        return signDoctorEnd;
    }

    public void setSignDoctorEnd(String signDoctorEnd) {
        this.signDoctorEnd = signDoctorEnd;
    }

    public String getSignNurseId() {
        return signNurseId;
    }

    public void setSignNurseId(String signNurseId) {
        this.signNurseId = signNurseId;
    }

    public String getSignNurse() {
        return signNurse;
    }

    public void setSignNurse(String signNurse) {
        this.signNurse = signNurse;
    }

    public String getSignNurseEndId() {
        return signNurseEndId;
    }

    public void setSignNurseEndId(String signNurseEndId) {
        this.signNurseEndId = signNurseEndId;
    }

    public String getSignNurseEnd() {
        return signNurseEnd;
    }

    public void setSignNurseEnd(String signNurseEnd) {
        this.signNurseEnd = signNurseEnd;
    }

    public String getBitSpeed() {
        return bitSpeed;
    }

    public void setBitSpeed(String bitSpeed) {
        this.bitSpeed = bitSpeed;
    }


    public Date getSignNurseDatetimeBefore() {
        if(StringUtils.isBlank(signNurseDatetimeBefore)){
            return null;
        }
        return DateUtil.stringToDate(signNurseDatetimeBefore,"yyyy-MM-dd HH:mm");
    }

    public void setSignNurseDatetimeBefore(String signNurseDatetimeBefore) {
        this.signNurseDatetimeBefore = signNurseDatetimeBefore;
    }
}
